package com.qf.dao;

import com.qf.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserDao {
    @Select("select * FROM t_users")
    public List<User> findAll();
    @Insert("insert into t_users(name,password,sex,birthday,registTime) values (#{user.name},#{user.password},#{user.sex},#{user.birthday},#{user.registTime})")
    public int add(@Param("user") User user);



}
